Dot notation in JavaScript